// eslint-disable-next-line no-unused-vars
const authInfo = {
  namespaced: true,
  state: {
    user: null,
    currentDept: null,
    rectifyDept: null
  },
  mutations: {
    setUserInfo (stat, userInfo) {
      stat.user = JSON.parse(JSON.stringify(userInfo))
    },
    setCurrentDept (stat, dept) {
      // console.log(dept)
      console.log(JSON.parse(JSON.stringify(dept)))
      stat.currentDept = JSON.parse(JSON.stringify(dept))
    },
    delCurrentDept (stat) {
      stat.currentDept = null
    },
    setRectifyDept (stat, dept) {
      stat.rectifyDept = JSON.parse(JSON.stringify(dept))
    },
    delRectifyDept (stat) {
      stat.rectifyDept = null
    }
  },
  actions: {
  }
}

export default authInfo
